package com.lxb.myforum.domain


import org.springframework.data.domain.PageRequest
import org.springframework.data.domain.Pageable


data class PageInfo(
        var page: Int = 0,
        var size: Int = 0
) {

    fun generatePage(): Pageable {
        //		List<Order> orders = new ArrayList<>();
        //		orders.add(new Order(""));
        //		pageable.getSort().and(new Sort(orders));
        return PageRequest.of(page - 1, size)
    }
}
